<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class WechatMenu extends Model
{
	use SoftDeletes;
    protected $table = 'wechat_menu';
    public function menuAdd($data){
    	$data['created_at'] = date("Y-m-d H:i:s");
    	$data['updated_at'] = date("Y-m-d H:i:s");
    	return $this->insert($data);
    }
    public function updateData($id,$data){
    		return $this->where("id",$id)->update($data);
    }
}
